'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up (queryInterface, Sequelize) {
    const peoples = [];
    const counts = 100;

    for (let i = 1; i <= counts; i++) {
        const article = {
            userName: `李${i}`,
            createdAt: new Date(),
            updatedAt: new Date(),
        };

        peoples.push(article);
    }

    await queryInterface.bulkInsert('People', peoples, {});
  },

  async down (queryInterface, Sequelize) {
    /**
     * Add commands to revert seed here.
     *
     * Example:
     * await queryInterface.bulkDelete('People', null, {});
     */
  }
};
